package jin.si.com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @description: 登录
 * @ClassName Login
 * @Author MT
 * @Date 2021/5/10 15:59
 **/

@SpringBootApplication
//@Configuration
//@EnableAutoConfiguration
//@ComponentScan
//扫描监听器，过滤器，servlet
@ServletComponentScan
//事务控制注解
@EnableTransactionManagement
//定时器
@EnableScheduling
//异步注解
@EnableAsync
//扫描持久层接口（mapper代理接口）
@MapperScan("jin.si.com.dao")

public class Login {

    public static void main(String[] args) {

        SpringApplication.run(Login.class,args);
    }

}
